3.190 \(\int \frac{c+d x+e x^2+f x^3+g x^4+h x^5+i x^6}{a+b x^4} \, dx\)

Optimal. Leaf size=384 \[ -\frac{\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{b} (b c-a g)-\sqrt{a} (b e-a i)\right )}{4 \sqrt{2} a^{3/4} b^{7/4}}+\frac{\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{b} (b c-a g)-\sqrt{a} (b e-a i)\right )}{4 \sqrt{2} a^{3/4} b^{7/4}}-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{b} (b c-a g)+\sqrt{a} (b e-a i)\right )}{2 \sqrt{2} a^{3/4} b^{7/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (\sqrt{b} (b c-a g)+\sqrt{a} (b e-a i)\right )}{2 \sqrt{2} a^{3/4} b^{7/4}}+\frac{(b d-a h) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}+\frac{f \log \left (a+b x^4\right )}{4 b}+\frac{g x}{b}+\frac{h x^2}{2 b}+\frac{i x^3}{3 b} \]

[Out]

(g*x)/b + (h*x^2)/(2*b) + (i*x^3)/(3*b) + ((b*d - a*h)*ArcTan[(Sqrt[b]*x^2)/Sqrt
[a]])/(2*Sqrt[a]*b^(3/2)) - ((Sqrt[b]*(b*c - a*g) + Sqrt[a]*(b*e - a*i))*ArcTan[
1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(7/4)) + ((Sqrt[b]*(b*c -
 a*g) + Sqrt[a]*(b*e - a*i))*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]
*a^(3/4)*b^(7/4)) - ((Sqrt[b]*(b*c - a*g) - Sqrt[a]*(b*e - a*i))*Log[Sqrt[a] - S
qrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(7/4)) + ((Sqrt[b]
*(b*c - a*g) - Sqrt[a]*(b*e - a*i))*Log[Sqrt[a] + Sqrt[2]*a^(1/4)*b^(1/4)*x + Sq
rt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(7/4)) + (f*Log[a + b*x^4])/(4*b)

_______________________________________________________________________________________

Rubi [A]  time = 1.23481, antiderivative size = 384, normalized size of antiderivative = 1., number of steps used = 19, number of rules used = 12, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3 \[ -\frac{\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{b} (b c-a g)-\sqrt{a} (b e-a i)\right )}{4 \sqrt{2} a^{3/4} b^{7/4}}+\frac{\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (\sqrt{b} (b c-a g)-\sqrt{a} (b e-a i)\right )}{4 \sqrt{2} a^{3/4} b^{7/4}}-\frac{\tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{b} (b c-a g)+\sqrt{a} (b e-a i)\right )}{2 \sqrt{2} a^{3/4} b^{7/4}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (\sqrt{b} (b c-a g)+\sqrt{a} (b e-a i)\right )}{2 \sqrt{2} a^{3/4} b^{7/4}}+\frac{(b d-a h) \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} b^{3/2}}+\frac{f \log \left (a+b x^4\right )}{4 b}+\frac{g x}{b}+\frac{h x^2}{2 b}+\frac{i x^3}{3 b} \]

Antiderivative was successfully verified.

[In]  Int[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5 + i*x^6)/(a + b*x^4),x]

[Out]

(g*x)/b + (h*x^2)/(2*b) + (i*x^3)/(3*b) + ((b*d - a*h)*ArcTan[(Sqrt[b]*x^2)/Sqrt
[a]])/(2*Sqrt[a]*b^(3/2)) - ((Sqrt[b]*(b*c - a*g) + Sqrt[a]*(b*e - a*i))*ArcTan[
1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(7/4)) + ((Sqrt[b]*(b*c -
 a*g) + Sqrt[a]*(b*e - a*i))*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]
*a^(3/4)*b^(7/4)) - ((Sqrt[b]*(b*c - a*g) - Sqrt[a]*(b*e - a*i))*Log[Sqrt[a] - S
qrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(7/4)) + ((Sqrt[b]
*(b*c - a*g) - Sqrt[a]*(b*e - a*i))*Log[Sqrt[a] + Sqrt[2]*a^(1/4)*b^(1/4)*x + Sq
rt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(7/4)) + (f*Log[a + b*x^4])/(4*b)

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \frac{f \log{\left (a + b x^{4} \right )}}{4 b} + \frac{h x^{2}}{2 b} + \frac{i x^{3}}{3 b} + \frac{\int g\, dx}{b} - \frac{\left (a h - b d\right ) \operatorname{atan}{\left (\frac{\sqrt{b} x^{2}}{\sqrt{a}} \right )}}{2 \sqrt{a} b^{\frac{3}{2}}} - \frac{\sqrt{2} \left (\sqrt{a} \left (a i - b e\right ) - \sqrt{b} \left (a g - b c\right )\right ) \log{\left (- \sqrt{2} \sqrt [4]{a} b^{\frac{3}{4}} x + \sqrt{a} \sqrt{b} + b x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{7}{4}}} + \frac{\sqrt{2} \left (\sqrt{a} \left (a i - b e\right ) - \sqrt{b} \left (a g - b c\right )\right ) \log{\left (\sqrt{2} \sqrt [4]{a} b^{\frac{3}{4}} x + \sqrt{a} \sqrt{b} + b x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{7}{4}}} + \frac{\sqrt{2} \left (\sqrt{a} \left (a i - b e\right ) + \sqrt{b} \left (a g - b c\right )\right ) \operatorname{atan}{\left (1 - \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{7}{4}}} - \frac{\sqrt{2} \left (\sqrt{a} \left (a i - b e\right ) + \sqrt{b} \left (a g - b c\right )\right ) \operatorname{atan}{\left (1 + \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{7}{4}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((i*x**6+h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/(b*x**4+a),x)

[Out]

f*log(a + b*x**4)/(4*b) + h*x**2/(2*b) + i*x**3/(3*b) + Integral(g, x)/b - (a*h
- b*d)*atan(sqrt(b)*x**2/sqrt(a))/(2*sqrt(a)*b**(3/2)) - sqrt(2)*(sqrt(a)*(a*i -
 b*e) - sqrt(b)*(a*g - b*c))*log(-sqrt(2)*a**(1/4)*b**(3/4)*x + sqrt(a)*sqrt(b)
+ b*x**2)/(8*a**(3/4)*b**(7/4)) + sqrt(2)*(sqrt(a)*(a*i - b*e) - sqrt(b)*(a*g -
b*c))*log(sqrt(2)*a**(1/4)*b**(3/4)*x + sqrt(a)*sqrt(b) + b*x**2)/(8*a**(3/4)*b*
*(7/4)) + sqrt(2)*(sqrt(a)*(a*i - b*e) + sqrt(b)*(a*g - b*c))*atan(1 - sqrt(2)*b
**(1/4)*x/a**(1/4))/(4*a**(3/4)*b**(7/4)) - sqrt(2)*(sqrt(a)*(a*i - b*e) + sqrt(
b)*(a*g - b*c))*atan(1 + sqrt(2)*b**(1/4)*x/a**(1/4))/(4*a**(3/4)*b**(7/4))

_______________________________________________________________________________________

Mathematica [A]  time = 0.587434, size = 427, normalized size = 1.11 \[ \frac{\frac{6 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (2 a^{5/4} \sqrt [4]{b} h+\sqrt{2} a^{3/2} i-2 \sqrt [4]{a} b^{5/4} d-\sqrt{2} \sqrt{a} b e+\sqrt{2} a \sqrt{b} g-\sqrt{2} b^{3/2} c\right )}{a^{3/4}}+\frac{6 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (2 a^{5/4} \sqrt [4]{b} h-\sqrt{2} a^{3/2} i-2 \sqrt [4]{a} b^{5/4} d+\sqrt{2} \sqrt{a} b e-\sqrt{2} a \sqrt{b} g+\sqrt{2} b^{3/2} c\right )}{a^{3/4}}-\frac{3 \sqrt{2} \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (a^{3/2} i-\sqrt{a} b e-a \sqrt{b} g+b^{3/2} c\right )}{a^{3/4}}+\frac{3 \sqrt{2} \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right ) \left (a^{3/2} i-\sqrt{a} b e-a \sqrt{b} g+b^{3/2} c\right )}{a^{3/4}}+6 b^{3/4} f \log \left (a+b x^4\right )+24 b^{3/4} g x+12 b^{3/4} h x^2+8 b^{3/4} i x^3}{24 b^{7/4}} \]

Antiderivative was successfully verified.

[In]  Integrate[(c + d*x + e*x^2 + f*x^3 + g*x^4 + h*x^5 + i*x^6)/(a + b*x^4),x]

[Out]

(24*b^(3/4)*g*x + 12*b^(3/4)*h*x^2 + 8*b^(3/4)*i*x^3 + (6*(-(Sqrt[2]*b^(3/2)*c)
- 2*a^(1/4)*b^(5/4)*d - Sqrt[2]*Sqrt[a]*b*e + Sqrt[2]*a*Sqrt[b]*g + 2*a^(5/4)*b^
(1/4)*h + Sqrt[2]*a^(3/2)*i)*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/a^(3/4) +
(6*(Sqrt[2]*b^(3/2)*c - 2*a^(1/4)*b^(5/4)*d + Sqrt[2]*Sqrt[a]*b*e - Sqrt[2]*a*Sq
rt[b]*g + 2*a^(5/4)*b^(1/4)*h - Sqrt[2]*a^(3/2)*i)*ArcTan[1 + (Sqrt[2]*b^(1/4)*x
)/a^(1/4)])/a^(3/4) - (3*Sqrt[2]*(b^(3/2)*c - Sqrt[a]*b*e - a*Sqrt[b]*g + a^(3/2
)*i)*Log[Sqrt[a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/a^(3/4) + (3*Sqrt[2
]*(b^(3/2)*c - Sqrt[a]*b*e - a*Sqrt[b]*g + a^(3/2)*i)*Log[Sqrt[a] + Sqrt[2]*a^(1
/4)*b^(1/4)*x + Sqrt[b]*x^2])/a^(3/4) + 6*b^(3/4)*f*Log[a + b*x^4])/(24*b^(7/4))

_______________________________________________________________________________________

Maple [B]  time = 0.007, size = 603, normalized size = 1.6 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((i*x^6+h*x^5+g*x^4+f*x^3+e*x^2+d*x+c)/(b*x^4+a),x)

[Out]

1/3*i*x^3/b+1/2*h*x^2/b+g*x/b-1/4/b*(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/
4)*x-1)*g+1/4*c*(a/b)^(1/4)/a*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)-1/8/b*(a/b
)^(1/4)*2^(1/2)*ln((x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))/(x^2-(a/b)^(1/4)*x*2^
(1/2)+(a/b)^(1/2)))*g+1/8*c*(a/b)^(1/4)/a*2^(1/2)*ln((x^2+(a/b)^(1/4)*x*2^(1/2)+
(a/b)^(1/2))/(x^2-(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2)))-1/4/b*(a/b)^(1/4)*2^(1/2)*
arctan(2^(1/2)/(a/b)^(1/4)*x+1)*g+1/4*c*(a/b)^(1/4)/a*2^(1/2)*arctan(2^(1/2)/(a/
b)^(1/4)*x+1)-1/2/b/(a*b)^(1/2)*arctan(x^2*(b/a)^(1/2))*a*h+1/2*d/(a*b)^(1/2)*ar
ctan(x^2*(b/a)^(1/2))-1/8/b^2/(a/b)^(1/4)*2^(1/2)*ln((x^2-(a/b)^(1/4)*x*2^(1/2)+
(a/b)^(1/2))/(x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2)))*a*i+1/8*e/b/(a/b)^(1/4)*2^
(1/2)*ln((x^2-(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))/(x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b
)^(1/2)))-1/4/b^2/(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)*a*i+1/4*e/
b/(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)-1/4/b^2/(a/b)^(1/4)*2^(1/2
)*arctan(2^(1/2)/(a/b)^(1/4)*x+1)*a*i+1/4*e/b/(a/b)^(1/4)*2^(1/2)*arctan(2^(1/2)
/(a/b)^(1/4)*x+1)+1/4*f*ln(b*x^4+a)/b

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((i*x^6 + h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)/(b*x^4 + a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((i*x^6 + h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)/(b*x^4 + a),x, algorithm="fricas")

[Out]

Timed out

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((i*x**6+h*x**5+g*x**4+f*x**3+e*x**2+d*x+c)/(b*x**4+a),x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.22828, size = 759, normalized size = 1.98 \[ \text{result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((i*x^6 + h*x^5 + g*x^4 + f*x^3 + e*x^2 + d*x + c)/(b*x^4 + a),x, algorithm="giac")

[Out]

-1/8*i*(2*sqrt(2)*(a*b^3)^(3/4)*arctan(1/2*sqrt(2)*(2*x + sqrt(2)*(a/b)^(1/4))/(
a/b)^(1/4))/b^4 - sqrt(2)*(a*b^3)^(3/4)*ln(x^2 + sqrt(2)*x*(a/b)^(1/4) + sqrt(a/
b))/b^4) - 1/8*i*(2*sqrt(2)*(a*b^3)^(3/4)*arctan(1/2*sqrt(2)*(2*x - sqrt(2)*(a/b
)^(1/4))/(a/b)^(1/4))/b^4 + sqrt(2)*(a*b^3)^(3/4)*ln(x^2 - sqrt(2)*x*(a/b)^(1/4)
 + sqrt(a/b))/b^4) + 1/4*f*ln(abs(b*x^4 + a))/b + 1/4*sqrt(2)*(sqrt(2)*sqrt(a*b)
*b^2*d + sqrt(2)*sqrt(a*b)*a*b*h + (a*b^3)^(1/4)*b^2*c - (a*b^3)^(1/4)*a*b*g + (
a*b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*(2*x + sqrt(2)*(a/b)^(1/4))/(a/b)^(1/4))/(a*b
^3) + 1/4*sqrt(2)*(sqrt(2)*sqrt(a*b)*b^2*d + sqrt(2)*sqrt(a*b)*a*b*h + (a*b^3)^(
1/4)*b^2*c - (a*b^3)^(1/4)*a*b*g + (a*b^3)^(3/4)*e)*arctan(1/2*sqrt(2)*(2*x - sq
rt(2)*(a/b)^(1/4))/(a/b)^(1/4))/(a*b^3) + 1/8*sqrt(2)*((a*b^3)^(1/4)*b^2*c - (a*
b^3)^(1/4)*a*b*g - (a*b^3)^(3/4)*e)*ln(x^2 + sqrt(2)*x*(a/b)^(1/4) + sqrt(a/b))/
(a*b^3) - 1/8*sqrt(2)*((a*b^3)^(1/4)*b^2*c - (a*b^3)^(1/4)*a*b*g - (a*b^3)^(3/4)
*e)*ln(x^2 - sqrt(2)*x*(a/b)^(1/4) + sqrt(a/b))/(a*b^3) + 1/6*(2*b^2*i*x^3 + 3*b
^2*h*x^2 + 6*b^2*g*x)/b^3